tokio-tls 0.2.1

An implementation of TLS/SSL streams for Tokio giving an implementation of TLS for nonblocking I/O streams.
Documentation

tokio-tls

An implementation of TLS/SSL streams for Tokio built on top of the native-tls crate

Documentation

Usage

First, add this to your Cargo.toml:

[dependencies]
native-tls = "0.2"
tokio-tls = "0.2"

Next, add this to your crate:

extern crate native_tls;
extern crate tokio_tls;

use tokio_tls::{TlsConnector, TlsAcceptor};

You can find few examples how to use this crate in examples directory (using TLS in hyper server or client).

By default the native-tls crate currently uses the "platform appropriate" backend for a TLS implementation. This means:

Typically these selections mean that you don't have to worry about a portability when using TLS, these libraries are all normally installed by default.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.